package com.example.mapper;

import com.example.entity.Mapfile;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.vo.MapfilesVO;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 陈昌吉
 * @since 2024-04-16
 */
@Mapper
public interface MapfileMapper extends BaseMapper<Mapfile> {
    //Object selectAll(Integer hid, String sta, String state);

    Page<MapfilesVO> selectAll(Integer hid, String sta, String state);

    @Update("UPDATE mapfile  SET state=#{state}  WHERE mapfile.login_id=#{loginId} AND mapfile.hid=#{hid} AND mapfile.name=#{name}")
    void updateMapFiles(Mapfile mapfile);
}
